package com.qfedu.kbonline.controller;

import com.qfedu.kbonline.entity.User;
import com.qfedu.kbonline.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.omg.CORBA.PUBLIC_MEMBER;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: SuperAsvin
 * @description:
 * @author: ErBa(韩智飞)
 * @create: 2020-09-15 13:18
 **/

@Api(tags = "用户相关操作")
@RestController
@RequestMapping("user/")
public class UserController {

    @Autowired
    private UserService userService;

    @ApiOperation(value = "查询全部用户", notes = "查询全部用户")
    @GetMapping("/all.do")
    public List<User> all() {
        return userService.selectAll();
    }
}
